import request from '../utils/http-utils.js'
const resourceApi = {
	getByPage: '/resource/back/page/list',
	getDetail: '/resource/back/detail/'
}

/**
 * 分页获取媒体资源列表
 * @param {Object} param
 */
export function getSourceByPage (data) {
	return request({
		url: resourceApi.getByPage,
		method: 'post',
		data: data
	})
}

/**
 * 查看资源
 * @param {Object} id
 */
export function getSourceById(id) {
	return request({
		url: resourceApi.getDetail + id,
		method: 'get'
	})
}


